package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <desc>
 * 微信对账订单出入实体类.
 * </desc>
 *
 * @createDate 2018/8/30
 */
@ItlTables("wechat_check_account_order_diff_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class WechatCheckAccountOrderDiffPO extends BasePO implements Serializable {

    @ItlField(value = "order_diff_id",logicKey = "key")
    private String orderDiffId;             //账单出入ID 逻辑ID

    @ItlField("appid")
    private String appid;                   //应用appid

    @ItlField("mchid")
    private String mchid;                   //商户号

    @ItlField("bussiness_order_num")
    private String bussinessOrderNum;       //商户订单号

    @ItlField("wechat_order_num")
    private String wechatOrderNum;          //微信订单号

    @ItlField("order_time")
    private Date orderTime;                 //下单时间

    @ItlField("trade_success_time")
    private Date tradeSuccessTime;          //交易成功时间

    @ItlField("wechat_trade_amount")
    private BigDecimal wechatTradeAmount;   //微信交易金额

    @ItlField("bussiness_trade_amount")
    private BigDecimal bussinessTradeAmount; //商户交易金额

    @ItlField("diff_type")
    private Integer diffType;                //出入类型 1代表短款 2代表长款 3代表金额不一致

    @ItlField("diff_order_status")
    private Integer diffOrderStatus;         //出入订单状态 1代表已平账 2代表未平账

    @ItlField("operator")
    private String operator;                //操作人

    @ItlField("remark")
    private String remark;                  //备注

    public WechatCheckAccountOrderDiffPO(String appid, String mchid) {
        this.appid = appid;
        this.mchid = mchid;
    }
}